package org.darkforest.merchant.service;

import org.darkforest.model.Order;
import org.darkforest.model.OrderCommon;
import org.darkforest.model.OrderSearchBean;
import org.darkforest.model.OrderVo;

import java.util.List;

/**
 * Created by valentina on 15/1/18.
 * 商户基本信息操作
 */
public interface OrderService {
    public void selectListByCondition(OrderSearchBean page);

    public OrderVo selectById(int id);

    public void  updateByPrimaryKeySelective(Order order);

    public OrderCommon getOrderCommonById(int orderId);

    public void updateOrderCommon(OrderCommon orderCommon);
    public List selectByMember(int id);

    void deliverGoods(OrderCommon common, Order order);

    /****
     * 删除取消的订单
     * @param order
     */
    void orderDel(Order order);

    /****
     * 批量删除取消的订单
     * @param orderIds
     */
    void deleteOrderBatch(String[] orderIds);
}
